package com.atguigu.spring5.dao;

import com.atguigu.spring5.entity.Book;

import java.util.List;

public interface BookDao {

    //添加的方法
    void add(Book book);

    void updateBook(Book book);

    void delete(Long id);

    int selectCount();

    Book findBookInfo(Long id);

    List<Book> findAll();

    void batchInsert(List<Object[] > list);

    void batchUpdate(List<Object[]> list);

    void batchDelete(List<Object[]> list);
}
